<?php /* Smarty version 2.6.26, created on 2015-08-02 22:04:06
         compiled from index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'index.html', 45, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title><?php echo $this->_tpl_vars['askData']['content']; ?>
-后盾问答</title>
	<meta name="keywords" content="后盾问答"/>
	<meta name="description" content="后盾问答"/>
	
	<link rel="stylesheet" href="./Public/Home/Css/question.css" />
	
<!--头部开始-->	
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../Common/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!--头部结束-->
<script type="text/javascript" src="./Public/Home/Js/question.js"></script>
	<!--面包屑导航开始-->
<div id='location'>
		<a href="./index.php?c=List&cid=0">全部分类</a>
		<!--面包屑开始-->
		<?php unset($this->_sections['nav']);
$this->_sections['nav']['loop'] = is_array($_loop=$this->_tpl_vars['fatherCate']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['nav']['name'] = 'nav';
$this->_sections['nav']['show'] = true;
$this->_sections['nav']['max'] = $this->_sections['nav']['loop'];
$this->_sections['nav']['step'] = 1;
$this->_sections['nav']['start'] = $this->_sections['nav']['step'] > 0 ? 0 : $this->_sections['nav']['loop']-1;
if ($this->_sections['nav']['show']) {
    $this->_sections['nav']['total'] = $this->_sections['nav']['loop'];
    if ($this->_sections['nav']['total'] == 0)
        $this->_sections['nav']['show'] = false;
} else
    $this->_sections['nav']['total'] = 0;
if ($this->_sections['nav']['show']):

            for ($this->_sections['nav']['index'] = $this->_sections['nav']['start'], $this->_sections['nav']['iteration'] = 1;
                 $this->_sections['nav']['iteration'] <= $this->_sections['nav']['total'];
                 $this->_sections['nav']['index'] += $this->_sections['nav']['step'], $this->_sections['nav']['iteration']++):
$this->_sections['nav']['rownum'] = $this->_sections['nav']['iteration'];
$this->_sections['nav']['index_prev'] = $this->_sections['nav']['index'] - $this->_sections['nav']['step'];
$this->_sections['nav']['index_next'] = $this->_sections['nav']['index'] + $this->_sections['nav']['step'];
$this->_sections['nav']['first']      = ($this->_sections['nav']['iteration'] == 1);
$this->_sections['nav']['last']       = ($this->_sections['nav']['iteration'] == $this->_sections['nav']['total']);
?>
			<?php if ($this->_sections['nav']['last']): ?>
			&gt;&nbsp;<?php echo $this->_tpl_vars['fatherCate'][$this->_sections['nav']['index']]['title']; ?>
&nbsp;&nbsp;			
			<?php else: ?>
			&gt;&nbsp;<a href="index.php?c=List&cid=<?php echo $this->_tpl_vars['fatherCate'][$this->_sections['nav']['index']]['cid']; ?>
"><?php echo $this->_tpl_vars['fatherCate'][$this->_sections['nav']['index']]['title']; ?>
</a>&nbsp;&nbsp;
			<?php endif; ?>
		<?php endfor; endif; ?>
		<!--面包屑结束-->
</div>
<!--面包屑导航结束-->

<!--------------------中部-------------------->
	<div id='center-wrap'>
		<div id='center'>
			<div id='left'>
				<div id='answer-info'>
					<!-- 如果没有解决用wait -->
					<div class='ans-state <?php if ($this->_tpl_vars['askData']['solve'] == 0): ?> wait <?php endif; ?>'></div>
					<div class='answer'>
						<p class='ans-title'><?php echo $this->_tpl_vars['askData']['content']; ?>

							<b class='point'><?php echo $this->_tpl_vars['askData']['reward']; ?>
</b>
						</p>
					</div>
					<ul>
						<li><a href=""><?php echo $this->_tpl_vars['askData']['username']; ?>
</a></li>
						<li><i class='level lv1' title='Level 1'></i></li>
						<li><?php echo ((is_array($_tmp=$this->_tpl_vars['askData']['time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d') : smarty_modifier_date_format($_tmp, '%Y-%m-%d')); ?>
</li>
				
					</ul>
					<!--中间提问-->
					<?php if ($_SESSION['uname'] && $_SESSION['uid'] && $_SESSION['uid'] != $this->_tpl_vars['askData']['uid'] && $this->_tpl_vars['askData']['solve'] == 0): ?>
					<div class='ianswer'>
						<form action="index.php?c=Ask&a=Up" method='POST'>
							<p>我来回答</p>
							<textarea name="content"></textarea>
							<input type="hidden" name='asid' value='<?php echo $_GET['asid']; ?>
'>
							<input type="submit" value='提交回答' id='anw-sub'/>
						</form>
					</div>
				<?php endif; ?>
				<?php if ($this->_tpl_vars['acceptData']['a']['accept'] == 1): ?>	
					<!-- 满意回答 -->
					<div class='ans-right'>
						<p class='title'><i></i>满意回答<span></span></p>
						<p class='ans-cons'><?php echo $this->_tpl_vars['acceptData']['content']; ?>
</p>
						<dl>
							<dt>
								<a href=""><img src="./Public/Home/Images/noface.gif" width='48' height='48'/></a>
							</dt>
							<dd>
								<a href=""></a>
							</dd>
							<dd><i class='level lv1'></i></dd>
							<dd>20%</dd>
						</dl>
					</div>
				
					<!-- 满意回答 -->
				<?php endif; ?>	
				</div>

				<div id='all-answer'>
					<div class='ans-icon'></div>
					<p class='title'>共 <strong><?php echo $this->_tpl_vars['askData']['answer']; ?>
</strong> 条回答</p>
					<ul>
					<?php $_from = $this->_tpl_vars['answeData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['v']):
?>	
					    <li>
							<div class='face'>
								<a href="">
									<img src="<?php echo $this->_tpl_vars['v']['face']; ?>
" width='48' height='48'/>
								<?php echo $this->_tpl_vars['v']['username']; ?>
</a>
							</div>
							<div class='cons blue'>
								<p><?php echo $this->_tpl_vars['v']['content']; ?>
<span style='color:#888;font-size:12px'>&nbsp;&nbsp;(<?php echo ((is_array($_tmp=$this->_tpl_vars['v']['time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d') : smarty_modifier_date_format($_tmp, '%Y-%m-%d')); ?>
)</span></p>
							</div>
					<!--采纳判断，1.是没有最佳答案的，必须是自己发的问题才能看见采纳-->		
					<!--<?php if ($this->_tpl_vars['acceptData']['accept'] == 0 && $_SESSION['uid'] == $this->_tpl_vars['askData']['uid']): ?>-->
								<a href="index.php?c=ask&asid=<?php echo $_GET['asid']; ?>
&cid=<?php echo $_GET['cid']; ?>
&a=accept" class='adopt-btn'>采纳</a>
					<!--<?php endif; ?>-->
					<!--采纳判断结束-->
						</li>
				<?php endforeach; endif; unset($_from); ?>	
					</ul>
					<div class='page'>
						<a href="">1</a>
						<a href="">2</a>
						<a href="">3</a>
						<a href="">4</a>
					</div>
				</div>
				<div id='other-ask'>
					<p class='title'>待解决的相关问题</p>
					<table>	
						
	<!--待解决问题循环1.必须是未解决的相关分类问题 2.排出自己发的-->
	<?php unset($this->_sections['top']);
$this->_sections['top']['loop'] = is_array($_loop=$this->_tpl_vars['noasksqlData']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['top']['name'] = 'top';
$this->_sections['top']['show'] = true;
$this->_sections['top']['max'] = $this->_sections['top']['loop'];
$this->_sections['top']['step'] = 1;
$this->_sections['top']['start'] = $this->_sections['top']['step'] > 0 ? 0 : $this->_sections['top']['loop']-1;
if ($this->_sections['top']['show']) {
    $this->_sections['top']['total'] = $this->_sections['top']['loop'];
    if ($this->_sections['top']['total'] == 0)
        $this->_sections['top']['show'] = false;
} else
    $this->_sections['top']['total'] = 0;
if ($this->_sections['top']['show']):

            for ($this->_sections['top']['index'] = $this->_sections['top']['start'], $this->_sections['top']['iteration'] = 1;
                 $this->_sections['top']['iteration'] <= $this->_sections['top']['total'];
                 $this->_sections['top']['index'] += $this->_sections['top']['step'], $this->_sections['top']['iteration']++):
$this->_sections['top']['rownum'] = $this->_sections['top']['iteration'];
$this->_sections['top']['index_prev'] = $this->_sections['top']['index'] - $this->_sections['top']['step'];
$this->_sections['top']['index_next'] = $this->_sections['top']['index'] + $this->_sections['top']['step'];
$this->_sections['top']['first']      = ($this->_sections['top']['iteration'] == 1);
$this->_sections['top']['last']       = ($this->_sections['top']['iteration'] == $this->_sections['top']['total']);
?>
			<?php if ($this->_tpl_vars['noasksqlData'][$this->_sections['top']['index']]['asid'] !== $_GET['asid']): ?>
						<tr>					
							<td class='t1'><a href="index.php?c=ask&asid=<?php echo $this->_tpl_vars['noasksqlData'][$this->_sections['top']['index']]['asid']; ?>
&cid=<?php echo $this->_tpl_vars['noasksqlData'][$this->_sections['top']['index']]['cid']; ?>
"><?php echo $this->_tpl_vars['noasksqlData'][$this->_sections['top']['index']]['content']; ?>
</a></td>
							<td><?php echo $this->_tpl_vars['noasksqlData'][$this->_sections['top']['index']]['answer']; ?>
&nbsp;回答</td>
							<td><?php echo ((is_array($_tmp=$this->_tpl_vars['noasksqlData'][$this->_sections['top']['index']]['time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d ') : smarty_modifier_date_format($_tmp, '%Y-%m-%d ')); ?>
</td>							
						</tr>
			<?php endif; ?>			
	<?php endfor; endif; ?>
					</table>
				</div>
			</div>
<!--右侧开始-->		
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../Common/right.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!--右侧结束-->
			
		</div>

	</div>
	
<!--------------------中部结束-------------------->

<!--底部开始-->	
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../Common/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!--底部结束-->